#ifndef SERVER_H
#define SERVER_H

#include <vector>

class TcpServer {
public:
    TcpServer(int port) : _port(port), _socket(-1), _running(false) {}
    ~TcpServer() {}

    bool init();

    void start();

    void stop();

    void processClientData(int client_socket, std::vector<char>& buffer);

private:
    unsigned short  _port;
    int             _socket;
    bool            _running;
};

#endif